import resso from 'resso'

// 初始化仓库
export const store = resso({
  count: 0,
  inc: () => {
    // store.count = store.count + 1
    store('count', prev => prev + 1)
  }
})
/**
 *
 * import { store } from '@/store/resso'
 * <Button onClick={() => store.count++}>点击</Button>
 * <Button onClick={() => store.inc()}>点击</Button>
 */
